package com.hangim.pce.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.hangim.pce.common.domain.IdEntity;

import java.util.Date;

/**
 * <p>
 * 基准处方表
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-19
 */
@TableName("sys_prescription")
public class SysPrescription extends IdEntity {

    /**
     * 机构ID
     */
    @TableField("org_id")
    private Long orgId;
    /**
     * 机构名称
     */
    @TableField("org_name")
    private String orgName;
    /**
     * 就诊科室
     */
    @TableField("dep_name")
    private String depName;
    /**
     * 就诊科室Id
     */
    @TableField("dep_id")
    private Long depId;
    /**
     * 医生id
     */
    @TableField("doctor_id")
    private Long doctorId;
    /**
     * 医生名称
     */
    private String doctor;
    /**
     * 用户性别，女：0，男：1
     */
    private Integer sex;
    /**
     * 用户年龄
     */
    @TableField("user_age")
    private Integer userAge;
    /**
     * 2: 新生儿（28天以内）单位“天” ，1: 婴儿（28天-1周岁）、幼儿（1周到3周岁）单位“月-1”，0: 3周岁以上单位“年”
     */
    @TableField("user_age_unit")
    private Integer userAgeUnit;
    /**
     * 审方人Id
     */
    @TableField("audit_doctor_id")
    private Long auditDoctorId;
    /**
     * 审方姓名
     */
    @TableField("audit_doctor_name")
    private String auditDoctorName;
    /**
     * 人群
     */
    private String crowd;
    /**
     * 诊断
     */
    private String diagnosis;
    /**
     * 处方状态 ，0: 医生已开处方未审核；1: 医生已开处方，引擎审核通过；2: 医生已开处方，引擎审核不通过；3 引擎审核通过，药师审核通过 4: 引擎审核通过，药师审核不通过
     */
    @TableField("check_status")
    private Integer checkStatus;
    /**
     * 审查结果
     */
    @TableField("check_result")
    private String checkResult;
    /**
     * 状态
     */
    private Boolean active;
    /**
     * 创建时间
     */
    @TableField("created_date")
    private Date createdDate;
    /**
     * 创建人
     */
    @TableField("created_by")
    private String createdBy;
    /**
     * 更新时间
     */
    @TableField("updated_date")
    private Date updatedDate;
    /**
     * 更新人
     */
    @TableField("updated_by")
    private String updatedBy;

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public Long getDepId() {
        return depId;
    }

    public void setDepId(Long depId) {
        this.depId = depId;
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public String getDoctor() {
        return doctor;
    }

    public void setDoctor(String doctor) {
        this.doctor = doctor;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getUserAge() {
        return userAge;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    public Integer getUserAgeUnit() {
        return userAgeUnit;
    }

    public void setUserAgeUnit(Integer userAgeUnit) {
        this.userAgeUnit = userAgeUnit;
    }

    public Long getAuditDoctorId() {
        return auditDoctorId;
    }

    public void setAuditDoctorId(Long auditDoctorId) {
        this.auditDoctorId = auditDoctorId;
    }

    public String getAuditDoctorName() {
        return auditDoctorName;
    }

    public void setAuditDoctorName(String auditDoctorName) {
        this.auditDoctorName = auditDoctorName;
    }

    public String getCrowd() {
        return crowd;
    }

    public void setCrowd(String crowd) {
        this.crowd = crowd;
    }

    public String getDiagnosis() {
        return diagnosis;
    }

    public void setDiagnosis(String diagnosis) {
        this.diagnosis = diagnosis;
    }

    public Integer getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(Integer checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getCheckResult() {
        return checkResult;
    }

    public void setCheckResult(String checkResult) {
        this.checkResult = checkResult;
    }

    public Boolean getActive() {
        return active;
    }

    public void setActive(Boolean active) {
        this.active = active;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedDate() {
        return updatedDate;
    }

    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Override
    public String toString() {
        return "SysPrescription{" +
                ", id=" + id +
                ", orgId=" + orgId +
                ", orgName=" + orgName +
                ", depName=" + depName +
                ", depId=" + depId +
                ", doctorId=" + doctorId +
                ", doctor=" + doctor +
                ", sex=" + sex +
                ", userAge=" + userAge +
                ", userAgeUnit=" + userAgeUnit +
                ", auditDoctorId=" + auditDoctorId +
                ", auditDoctorName=" + auditDoctorName +
                ", crowd=" + crowd +
                ", diagnosis=" + diagnosis +
                ", checkStatus=" + checkStatus +
                ", checkResult=" + checkResult +
                ", active=" + active +
                ", createdDate=" + createdDate +
                ", createdBy=" + createdBy +
                ", updatedDate=" + updatedDate +
                ", updatedBy=" + updatedBy +
                "}";
    }
}
